<?php $this->load->view('common/header'); ?>
<?php $this->load->view('home/header-common'); ?>
	<section id="member-home">
		<div class="container">
			<div class="row-fluid">
				<div class="span3">
					<?php $this->load->view('home/left');?>
				</div>
				<div class="span9">
					<form action="<?php echo site_url("home/lib");?>" class="form-horizontal well" method="post">
						<fieldset>
							<legend>绑定图书馆账号</legend>
							<?php if (isset($hasLibPassword) && $hasLibPassword == 1) {?>
							<div class="alert alert-success">
								<!--<a class="close" data-dismiss="alert">×</a>-->
								<strong>您已经成功地绑定了图书馆账户</strong>
							</div>
							<?php }  else {?>
								<?php if ($hasLibPassword == -2) {?>
								<div class="alert alert-success">
									<a class="close" data-dismiss="alert">×</a>
									<strong>您的图书馆密码已经发生变化，请重新绑定！</strong>
								</div>
								<?php }?>
								<div class="control-group">
									<label for="password" class="control-label">图书馆密码</label>
									<div class="controls">
										<input type="password" class="input-large" id="password" name="password">
										<span class="help-inline"><?php echo form_error("password");?></span>
										<span class="help-block">绑定之后登录通行证即可查询图书馆相关信息</span>
									</div>
								</div>
								<?php if (isset($success)) { ?>
								<div class="alert alert-success">
									<a class="close" data-dismiss="alert">×</a>
									<strong><?php echo $success; ?></strong>
								</div>
								<?php } ?> 
								<div class="form-actions">
									<button type="submit" class="btn btn-primary">保存</button>
								</div>
							<?php } ?>
						</fieldset>
					</form>
				</div>
			</div>
		</div>
	</section>
</body>
</html>